import java.util.Vector;


public class ReadingSet {
	private Vector<Vector<WellData>> allData;
	private String time;
	private Double temperature;
	public ReadingSet(String time, Double temperature){
		this.time = time;
		this.temperature = temperature;
		allData = new Vector<Vector<WellData>>();
	}
	public void addDataRow(Vector<Double> row){
		Vector<WellData> newDataRow = new Vector<WellData>();
		for(int i=0;i<row.size();i++){
			newDataRow.add(new WellData(allData.size()+1,i,row.get(i)));
		}
		allData.add(newDataRow);
	}
	public void printAllRows() {
		// TODO Auto-generated method stub
		System.out.println("Printing ["+allData.size()+"] rows...");
		for (Vector<WellData> v : allData){
			System.out.println(v.toString());
		}
	}
	public void printAllWellInformation(){
		for(Vector<WellData> v : allData){
			for(WellData w : v){
				System.out.println("Data at row ["+w.getColNumber()+"] column ["+w.getRowNumber()+"]:"+w.getData());
			}
		}
	}
	public void printWellInformation(Integer row, Integer column){
		System.out.println("Printing cell at row ["+row+"] and column ["+column+"] for time ["+time+"]:"+allData.get(row-1).get(column-1).getData());
	}
	/**
	 * @return the time
	 */
	public String getTime() {
		return time;
	}
	/**
	 * @param time the time to set
	 */
	public void setTime(String time) {
		this.time = time;
	}
	/**
	 * @return the temperature
	 */
	public Double getTemperature() {
		return temperature;
	}
	/**
	 * @param temperature the temperature to set
	 */
	public void setTemperature(Double temperature) {
		this.temperature = temperature;
	}
	public Double getWellData(Integer row, Integer column){
		return allData.get(row-1).get(column-1).getData();
	}
}
